<div class = "ui modal small">
    <i class = "close icon" ng-click="cancel()"></i>
    <div class = "header tc">
        {{table1.value.tableName}}表汇总
    </div>
    <div class="content" style="max-height: 300px;overflow: auto">
        <div class="ui form small">
            <div class="fields" ng-repeat = "index in dataSum track by $index" style="margin-top: 10px;">
                <div class="inline field">
                    <label>字段</label>
                    <select class="ui fluid" ng-model="dataFileds[$index].filed" ng-change="selectCount($index)" style="min-width:100px;max-width: 180px;overflow: auto;"><!--ng-change="selectCount($index)" ng-options="filed.columnDesc as filed.columnDesc for filed in table1.filed"-->
                        <option ng-repeat="filed in table1.filed track by $index" value="{{filed.columnDesc}}" ng-show="filed.isShow">{{filed.columnDesc}}</option>
                    </select>
                </div>
                <div class="inline field">
                    <label>汇总方式</label>
                    <select class="ui fluid" ng-model="dataFileds[$index].count" ng-options="count.value as count.desc for count in counts"  style="min-width:90px;max-width: 110px;overflow: auto;">
                    </select>
                </div>
                <div class="inline field">
                    <label>汇总字段名</label>
                    <input type="text" placeholder="请输入聚合字段" ng-model="dataFileds[$index].filedDesc" style="max-width: 110px;"/>
                    <i class = "minus circle icon cp" ng-click = "lessSum($index)" ></i>
                    <i class = "add circle icon cp" ng-click = "addSum($index)" ng-show="$last"></i>
                </div>
            </div>
        </div>
    </div>
    <div style = "color: red;padding: 10px;" ng-show="msg">提示：{{msg}}</div>
    <div class = "actions">
        <button class = "ui button default" ng-click = "cancel()">取消</button>
        <button class = "ui button red" ng-click = "ok()">汇总</button>
    </div>
</div>